package com.acquisition.task.domain;

//import com.dcs.cn.common.database.annotation.Column;
//import com.dcs.cn.common.database.annotation.Id;
//import com.dcs.cn.common.database.annotation.Table;

/**
 * 串口读出来的数据
 *
 * @author wuqiwei
 * @date 2021/02/27
 */
//@Table("SerialData")
public class SerialData {

	/**
	 * 自增id
	 */
//	@Id("id")
	private Integer id;

	/**
	 * 日期时间yyyyMMddHHmmss
	 */
//	@Column("dataTime")
	private Long dataTime;

	/**
	 * 协议类型:1:HJ212-2017,2:HJ212-2005
	 */
//	@Column("type")
	private Integer type;

	/**
	 * 串口号
	 */
//	@Column("portCode")
	private String portCode;

	/**
	 * 监测因子key的json串（可能多个，例：["w00000","w00001","w00002"]）
	 */
//	@Column("monitorFactorKey")
	private String monitorFactorKey;

	/**
	 * 传进来的协议数据
	 */
//	@Column("data")
	private String data;

	public SerialData() {
		super();
	}

	public SerialData(Integer id, Long dataTime, Integer type, String portCode, String monitorFactorKey, String data) {
		super();
		this.id = id;
		this.dataTime = dataTime;
		this.type = type;
		this.portCode = portCode;
		this.monitorFactorKey = monitorFactorKey;
		this.data = data;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getDataTime() {
		return dataTime;
	}

	public void setDataTime(Long dataTime) {
		this.dataTime = dataTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPortCode() {
		return portCode;
	}

	public void setPortCode(String portCode) {
		this.portCode = portCode;
	}

	public String getMonitorFactorKey() {
		return monitorFactorKey;
	}

	public void setMonitorFactorKey(String monitorFactorKey) {
		this.monitorFactorKey = monitorFactorKey;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "SerialData [id=" + id + ", dataTime=" + dataTime + ", type=" + type + ", portCode=" + portCode
				+ ", monitorFactorKey=" + monitorFactorKey + ", data=" + data + "]";
	}

}
